#include"SeqList.h"

void test1(SeqList* psl)
{
	SeqListPushBack(psl, 3);
	SeqListPushBack(psl, 4);
	SeqListPushBack(psl, 5);
	SeqListPushBack(psl, 6);
	SeqListPushBack(psl, 7);
	SeqListPushBack(psl, 8);
	SeqListPushFront(psl, 2);
	SeqListPushFront(psl, 1);
	SeqListPrint(psl);

	SeqListPopBack(psl);
	SeqListPopFront(psl);
	SeqListPrint(psl);


}

void test2(SeqList* psl)
{
	SeqListPushFront(psl, 1);
	SeqListPushBack(psl, 3);
	SeqListPushBack(psl, 5);
	SeqListPushBack(psl, 6);
	SeqListPushBack(psl, 6);
	SeqListPushBack(psl, 7);
	SeqListPushBack(psl, 8);
	SeqListPrint(psl);

	SeqListInsert(psl, 1, 2);
	SeqListInsert(psl, 3, 4);
	SeqListPrint(psl);

	SeqListErase(psl, 5);
	SeqListPrint(psl);

	SeqListDestory(psl);
}

int main()
{
	SeqList s;
	SeqListInit(&s);

	//test1(&s);
	test2(&s);
	
	return 0;
}